package club.caihappy.store.mapper;

import club.caihappy.store.entity.District;

import java.util.List;

/**
 * 省市区模块的持久层接口
 * Created by DELL on 2022/3/17
 **/
public interface DistrictMapper {

    /**
     * 根据父代码查询区域信息
     *
     * @param parent
     * @return
     */
    List<District> findByParent(String parent);

    /**
     * 根据省市区代码查询名称
     * @param code
     * @return
     */
    String findNameByCode(String code);
}
